home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / graphics.17 / graphics / graphics-0.17 / tek2plot / color.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-12  |  1.1 KB  |  33 lines

  1. /* Copyright (C) 1989 Free Software Foundation, Inc.
  2.  
  3.    plot is distributed in the hope that it will be useful, but WITHOUT
  4.    ANY WARRANTY.  No author or distributor accepts responsibility to
  5.    anyone for the consequences of using it or for whether it serves any
  6.    particular purpose or works at all, unless he says so in writing.
  7.    Refer to the GNU General Public License for full details.
  8.  
  9.    Everyone is granted permission to copy, modify and redistribute
  10.    plot, but only under the conditions described in the GNU General
  11.    Public License.  A copy of this license is supposed to have been
  12.    given to you along with libtek so you can know your rights and
  13.    responsibilities.  It should be in a file named COPYING.  Among
  14.    other things, the copyright notice and this notice must be preserved
  15.    on all copies.  */
  16.  
  17. /* This file is the color routine, which is an extension to the plot
  18.    library. It changes the color of the following drawing operations. */
  19.  
  20. #include "sys-defines.h"
  21. #include "libplot.h"
  22.  
  23. int
  24. color ( red, green, blue)
  25.      int red, green, blue;
  26. {
  27.   putchar ('C');
  28.   putshort (red);
  29.   putshort (green);
  30.   putshort (blue);
  31.   return 0;
  32. }
  33.